package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("medic")
public class MedicamentBean {
    @TableId(value = "pk_medicId",type = IdType.AUTO)
    private int medicId;
    @TableField("medic_name")
    private String medicName;
    //防治类型
    @TableField("treatment")
    private String treatment;
    //类别
    @TableField("medic_type")
    private String medicType;
    //主要用途
    @TableField("uses")
    private String uses;

    public MedicamentBean() {
    }

    public MedicamentBean(String medicName, String treatment, String medicType, String use) {
        this.medicName = medicName;
        this.treatment = treatment;
        this.medicType = medicType;
        this.uses = use;
    }

    public String getMedicName() {
        return medicName;
    }

    public void setMedicName(String medicName) {
        this.medicName = medicName;
    }

    public String getTreatment() {
        return treatment;
    }

    public void setTreatment(String treatment) {
        this.treatment = treatment;
    }

    public String getMedicType() {
        return medicType;
    }

    public void setMedicType(String medicType) {
        this.medicType = medicType;
    }

    public String getUse() {
        return uses;
    }

    public void setUse(String use) {
        this.uses = use;
    }

    public int getMedicId() {
        return medicId;
    }

    public void setMedicId(int medicId) {
        this.medicId = medicId;
    }

    @Override
    public String toString() {
        return "MedicamentBean{" +
                "medicId=" + medicId +
                ", medicName='" + medicName + '\'' +
                ", treatment='" + treatment + '\'' +
                ", medicType='" + medicType + '\'' +
                ", use='" + uses + '\'' +
                '}';
    }
}
